import Index from '../page/Index'
import App from '../App'
import Home from '../page/Home'
import Popularization from '../page/Popularization'
import Store from '../page/Store'
import My from '../page/My'
import Login from '../page/Login'
import Hot from '../page/Hot'
import Live from '../page/Live'
import Man from '../page/Man'
import Sleep from '../page/Sleep'
import Topic from '../page/Topic'
import Order from '../page/Order'
import Shop from '../page/Shop'
import Skin from '../page/Skin'
import Wife from '../page/Wife'
import Heart from '../page/Heart'
import Bone from '../page/Bone'
import Breathe from '../page/Breathe'
import Boy from '../page/Boy'
import Ear from '../page/Ear'
import Family from '../page/Family'
import Nutrition from '../page/Nutrition'
import Stomach from '../page/Stomach'
import Detail from '../page/Detail'
import File from '../page/File'
import Health from '../page/Health'
import Purchase from '../page/Purchase'
import One from '../page/One'
import Address from '../page/Address'
import Chat from '../page/Chat'
import Detail_Chat from '../page/Detail_Chat'

const routes = [
    {
        from: "/",
        to: '/index/home'
    },
    {
        path: '/app',
        component: App,
    },
    {
        path: '/index',
        component: Index,
        children: [
            {
                from: "/index/popularization",
                to: '/index/popularization/hot'
            },
            {
                path: '/index/home',
                component: Home,
            },
            {
                path: '/index/store',
                component: Store,
            },
            {
                path: '/index/popularization',
                component: Popularization,
                children: [
                    {
                        path: '/index/popularization/hot',
                        component: Hot,
                    },
                    {
                        path: '/index/popularization/topic',
                        component: Topic,
                    },
                    {
                        path: '/index/popularization/live',
                        component: Live,
                    },
                    {
                        path: '/index/popularization/sleep',
                        component: Sleep,
                    },
                    {
                        path: '/index/popularization/man',
                        component: Man,
                    },
                ]
            },
            {
                path: '/index/my',
                component: My,
            },
        ]
    },
    {
        path: '/login',
        component: Login,
    },
    {
        path: '/order',
        component: Order,
    },
    ,
    {
        path: '/shop',
        component: Shop
    },
    {
        path: '/skin',
        component: Skin,
    },
    {
        path: '/wife',
        component: Wife
    },
    {
        path: '/heart',
        component: Heart
    },
    {
        path: '/bone',
        component: Bone
    },
    {
        path: '/breathe',
        component: Breathe
    },
    {
        path: '/boy',
        component: Boy
    },
    {
        path: '/ear',
        component: Ear
    },
    {
        path: '/family',
        component: Family
    },
    {
        path: '/nutrition',
        component: Nutrition
    },
    {
        path: '/stomach',
        component: Stomach
    },
    {
        path: '/detail/:id',
        component: Detail,
    },
    {
        path: '/detail_chat/:id',
        component: Detail_Chat,
    }
    ,
    {
        path: '/file',
        component: File,
    },
    {
        path: '/health',
        component: Health
    },
    {
        path: '/purchase',
        component: Purchase
    },
    {
        path: '/one',
        component: One
    },
    {
        path: '/address',
        component: Address
    },
    {
        path: '/chat',
        component: Chat
    },
]

export default routes